<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 设置meta
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/meta.jsp"%>
	<title>三方28数据管理</title>
	
<%-- 导入样式
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="linkForm" value="form" />
<%@ include file="/WEB-INF/template/include/link.jsp"%>
	<link rel="stylesheet" href="${res }/default/css/content.css" /> 
	
<%-- 导入脚本
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="scriptForm" value="form" />
<%@ include file="/WEB-INF/template/include/script.jsp"%>
	<script>
		jQuery(function(){
			$("#J_form").validate(extention.config["jquery.validate"]);
		});
	</script>

<%-- 页眉
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<c:set var="mode" value="original" />
<%@ include file="/WEB-INF/template/include/header.jsp"%>
	<div style="width:600px;margin:auto;padding:0px;">
		<p class="text-center xl-copyright">Whisper Studio Make Life Better.</p>
			<form id="J_form" class="form-horizontal" action="${ctx }/btn/betting/project/mode/setting.json" method="post">
				<div class="well" >
					<table class="table table-striped table-hover">
						<thead>
							<tr>
								<th>模式</th>
								<th>赢后使用</th>
								<th>输后使用</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${modes }" var="item" varStatus="status">
							<tr style="border-top:white;">
								<td>
									${item.modeName }
									<input type="hidden" name="bettingModeIds" value="${item.id }">
								</td>
								<td>
									<select class="form-control  setting" name="winModeIds">
										<c:forEach items="${modes }" var="subItem" varStatus="status"><c:if test="${item.winModeId==subItem.modeId }"> selected="selected"</c:if>
											<option value="${subItem.modeId }" <c:if test="${item.winModeId==subItem.modeId }"> selected="selected"</c:if>>${subItem.modeName }</option>
										</c:forEach>
									</select>
								</td>
								<td>
									<select class="form-control  setting" name="loseModeIds">
										<c:forEach items="${modes }" var="subItem" varStatus="status">
											<option value="${subItem.modeId }" <c:if test="${item.loseModeId==subItem.modeId }"> selected="selected"</c:if>>${subItem.modeName }</option>
										</c:forEach>
									</select>
								</td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
					<button type="submit"  class=" xl-btn-login btn-block " >提交</button>
				</div>
			</form>
		<p class="text-center xl-copyright">2014 &copy; Whisper Development Team.</p>
	</div>
<c:set var="mode" value="original" />
<%@ include file="/WEB-INF/template/include/footer.jsp"%>
